﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ThirdBitCheck
{
    class Program
    {
        static void Main(string[] args)
        {
            int number = 5;
           // Console.WriteLine(Convert.ToString(number,2).PadLeft(8,'0'));

            int mask = 1 << 3;
            bool isZero = ((number & mask) >> 3) == 0;
            Console.WriteLine("The third bit is zero: {0}", isZero);
        }
    }
}
